package ru.beta2.testyard.engine.points;

import ru.beta2.testyard.engine.ScriptPoint;

/**
 * User: Inc
 * Date: 23.06.2008
 * Time: 0:28:26
 */
public class LogoutPoint extends ScriptPoint
{

    private final int player;

    public LogoutPoint(int player)
    {
        this.player = player;
    }

    public void exec()
    {
        expectations().expectEvent(new PlayerEvent(PlayerEvent.DISCONNECTED, player), this);
        link().logout(player);
    }

}
